<?php

// 成为VIP

namespace app\shop\controller;

use think\Session;
use think\Controller;
use app\shop\model\Member as MemberModel;
use app\shop\model\GoodsType as GoodsTypeModel;

class CheckVip extends Controller
{

    public function index(MemberModel $member)
    {
        // 会员ID
        $member_id = Session::get('member_id');

        // 获取信息
        $item = $member->where('id', $member_id)->field('id,is_vip,avatar')->find();


        return $this->fetch('', [
            'mate_head' => 'VIP会员',
            'item'      => $item
        ]);
    }
}